/*
 * c4_excercies1.cpp
 *
 *  Created on: Sep 1, 2013
 *      Author: cyper.yin
 */
#include <iostream>
#include <string>
using namespace std;
int main_c4e1(int argc, char **argv) {
	char first_name[20];
	cout << "What is your first name?";
	cin.getline(first_name,20);

	char last_name[20];
	cout << "What is your last name?";
	cin.getline(last_name,20);

	char grade;
	cout << "What letter grade do you deserve?";
	cin.get(grade).get();

	int age;
	cout << "What is your age?";
	cin >> age;

	cout << "Name: " << last_name << ", " << first_name << endl;
	cout << "Grade: " << (char)(grade+1) << endl;
	cout << "Age: " << age << endl;

	return 0;
}



